package com.study.design.model.behaviorPattern.memento;

/**
* @Name: EmpMemento
* @Description: 备忘录类
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-2-15 下午10:37:27 
* @Version: V1.0
 */
public class EmpMemento {
	
	private String ename ;
	private int age ;
	private double salary ;
	
	public EmpMemento(Emp e) {
		this.ename = e.getEname() ;
		this.age = e.getAge() ;
		this.salary = e.getSalary() ;
	}
	
	public String getEname() {
		return ename;
	}
	public void setEname(String ename) {
		this.ename = ename;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public double getSalary() {
		return salary;
	}
	public void setSalary(double salary) {
		this.salary = salary;
	}

}
